package com.lc.controller.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lc.entity.system.Log;
import com.lc.service.system.LogService;

@Controller
@RequestMapping("/system/log")
public class LogController {

	@Autowired
	private LogService logService;
	
	@ResponseBody
	@RequestMapping("add")
	public String add() {
		return "";
	}
	
	@ResponseBody
	@RequestMapping("select")
	public List<Log> selectOne(String id) {
		Log log = new Log();
		log.setId(1);
 		return logService.select(id);
	}
}
